package com.google.code.kritter.data;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class TweetStat {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;

    @Persistent
    private String zip;

    @Persistent
    private String brand;

    @Persistent
    private String sku;

    @Persistent
    private String title;

    @Persistent
    private String retailer;

    @Persistent
    private String city;

    @Persistent
    private String state;

    @Persistent
    private String price;

    @Persistent
    private String link;

    @Persistent
    private Double latitude;

    @Persistent
    private Double longitude;

    @Persistent
    private Date date;
    
    public TweetStat( String zip, String brand, String sku
    		    , String title, String retailer, String city, String state
    		    , String price, String link, double latitude, double longitude) {
    	this.zip = zip;
    	this.brand = brand;
    	this.sku = sku;
    	this.title = title;
    	this.retailer = retailer;
    	this.city = city;
    	this.state = state;
    	this.price = price;
    	this.link = link;
    	this.latitude = latitude;
    	this.longitude = longitude;
    	this.date = new Date();
    }
    
    // get/set methods for the fields.  JDO doesn't use these, but your application does.

    public Long getId() {
        return id;
    }

    public String getZip() {
    	return zip;
    }

    public String getBrand() {
    	return brand;
    }

    public String getSku() {
    	return sku;
    }

    public String getTitle() {
    	return title;
    }

    public String getRetailer() {
    	return retailer;
    }

    public String getCity() {
    	return city;
    }

    public String getState() {
    	return state;
    }

    public String getPrice() {
    	return price;
    }

    public String getLink() {
    	return link;
    }
	
	public Double getLatitude() {
	    return latitude;
	}
	
	public Double getLongitude() {
	    return longitude;
	}

    public Date getDate() {
    	return date;
    }
}
